﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ModbusTest
{
     public class CountManager
     {
         public string Name { get; set; }
         public uint OKCount { get; set; }
         public uint NGCount { get; set; }
         public uint totalCount { get { return (OKCount + NGCount); } }
         public string passRate { get { return (OKCount * 1.0 / totalCount).ToString("P"); } }
         public string failRate { get { return (NGCount * 1.0 / totalCount).ToString("P"); } }
         public void Clear()
         {
             OKCount = 0;
             NGCount = 0;
         }
     }
}
